<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
	<TITLE></TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2  (Unix)">
	<META NAME="CREATED" CONTENT="0;0">
	<META NAME="CHANGED" CONTENT="20101229;16005100">
	<STYLE TYPE="text/css">
	<!--
		@page { margin: 0.79in }
		P { margin-bottom: 0.08in }
		PRE { font-family: "Times New Roman" }
	-->
	</STYLE>
</HEAD>
<BODY LANG="el-GR" DIR="LTR">
<PRE> <FONT SIZE=5><SPAN LANG="en-US"><B>Gamma function</B></SPAN></FONT>

<FONT SIZE=5><SPAN LANG="en-US"><B>recipgamma</B></SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US"><SPAN STYLE="font-style: normal">Calculates </SPAN><SPAN STYLE="font-style: normal">the reciprocal of the gamma function</SPAN><SPAN STYLE="font-style: normal">,</SPAN></SPAN></FONT>
<FONT SIZE=4><SPAN LANG="en-US">for details see book of Hang T. Lau, “A Java Numerical Library for Scientists and engineers|”, Chapman &amp; Hall, 2004</SPAN></FONT>




<FONT SIZE=4><SPAN LANG="en-US"><B>Example: Can be run with F5 within the ScalaLab Editor (Ctrl-E to open the editor)</B></SPAN></FONT>

<SPAN LANG="en-US">import java.text.DecimalFormat;</SPAN>
<SPAN LANG="en-US">import numal.*;</SPAN>

<SPAN LANG="en-US">public class Test_recipgamma extends Object {</SPAN>
<SPAN LANG="en-US">	</SPAN>
<SPAN LANG="en-US">	public static void main(String args[]) {</SPAN>

    <SPAN LANG="en-US">double x;</SPAN>
  <SPAN LANG="en-US">	double odd[] = new double[1];</SPAN>
  <SPAN LANG="en-US">	double even[] = new double[1];</SPAN>

    <SPAN LANG="en-US">DecimalFormat fiveDigit = new DecimalFormat(&quot;0.00000E0&quot;);</SPAN>
<SPAN LANG="en-US">	  System.out.println(&quot;RECIPGAMMA delivers:&quot;);</SPAN>
<SPAN LANG="en-US">	  x=Special_functions.recipgamma(0.4,odd,even);</SPAN>
<SPAN LANG="en-US">	  System.out.println(&quot; 0.4   &quot; +</SPAN>
<SPAN LANG="en-US">	    fiveDigit.format(x) + &quot;  &quot; +</SPAN>
<SPAN LANG="en-US">	    fiveDigit.format(odd[0]) + &quot;  &quot; +</SPAN>
<SPAN LANG="en-US">	    fiveDigit.format(even[0]));</SPAN>
<SPAN LANG="en-US">	  x=Special_functions.recipgamma(0.0,odd,even);</SPAN>
<SPAN LANG="en-US">	  System.out.println(&quot; 0.4   &quot; +</SPAN>
<SPAN LANG="en-US">	    fiveDigit.format(x) + &quot;   &quot; +</SPAN>
<SPAN LANG="en-US">	    fiveDigit.format(odd[0]) + &quot;  &quot; +</SPAN>
<SPAN LANG="en-US">	    fiveDigit.format(even[0]));</SPAN>
<SPAN LANG="en-US">	}</SPAN>
<SPAN LANG="en-US">}</SPAN></PRE>
</BODY>
</HTML>